<!DOCTYPE  html>
<html>
{include file="head.html"}
<body> 
<div class="tabs-border" id="myTab">
	<div href="c_base"  class="item active">基本设置</div>
	<div href="c_email" class="item">邮箱设置</div>
 
	<div href="c_water" class="item">水印设置</div>
	<div href="c_sms" class="item">短信设置</div>
	<div href="c_invite" class="item">邀请设置</div>
	 
	<div href="c_yingye" class="item">营业设置</div> 
	<div href="c_skins" class="item">风格设置</div>
</div>	
<div class="main-body">
  
  
    
    <form method="post" id="t-form" action="/admin.php?m=config&a=save">
      <div class="tab-content">
        <div class="tabs-border-box tabs-border-box-active" id="c_base">{include file="config/base.html"}</div>
   
        <div class="tabs-border-box" id="c_water">{include file="config/water.html"}</div>
        <div class="tabs-border-box" id="c_sms">{include file="config/sms.html"}</div>
        <div class="tabs-border-box" id="c_invite">{include file="config/invite.html"}</div>
        
        <div class="tabs-border-box" id="c_email">{include file="config/email.html"}</div>
		<div class="tabs-border-box" id="c_yingye">{include file="config/yingye.html"}</div>
         <div class="tabs-border-box" id="c_skins">{include file="config/skins.html"}</div>
      </div>
			<div class="btn-row-submit js-submit" ungo="1">保存</div>
      
    </form>
  </div>
</div>
{include file="footer.html"}
<script src="/static/admin/js/upload.js"> </script>
<script >
$(".tab-content tr").find("td:eq(0)").css("width","100px");
$('#myTab .item').click(function (e) {
	 var id=$(this).attr("href");
	 $(this).addClass("active").siblings().removeClass("active");
	  
	  $("#"+id).addClass("tabs-border-box-active").siblings().removeClass("tabs-border-box-active");
});
$("#testphone").click(function(){
		$.get("{$appadmin}?m=config&a=testphone",$("#t-form").serialize(),function(data){
			alert(data)
		})
});

$("#testemail").click(function(){
	$.get('{$appadmin}?m=config&a=testemail',$("#t-form").serialize(),function(data){ 
    	$('.testemail_res').html(data); 
    });
});

</script>
 
<script src="/plugin/colpick/js/colpick.js"></script>
<link href="/plugin/colpick/css/colpick.css" rel="stylesheet">
	<script>
		var skinsolor="{if $data.skinscolor}{$data.skinscolor}{else}fff{/if}";
		 $('.skins-item').colpick({

			color:skinsolor,
		
			onSubmit:function(hsb,hex,rgb,el) {
		
				$(el).css('background-color', '#'+hex);
				$("#skinscolor").val(hex);
				$(el).colpickHide();
		
			}
		
		})
		
		.css('background-color', '#'+skinsolor);
	</script>
</body>
</html>